extends "ChaInfo.gd"

func _extInit():
	._extInit()
	attInfox.atkRan = 6
	attInfox.spd = 0.5
	type = sys.CharaClass.BOSS
	setCamp("塞壬")
	addSkill("单次受伤量不超过最大生命值的15%，每{cd}秒弱驱散自身负面效果", "塞壬", "siren", 5)

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "siren":
		weakDispel(self, true)

func _onHurt(atkInfo):
	._onHurt(atkInfo)
	if atkInfo.hurtVal > att.maxHp * 0.15:
		atkInfo.hurtVal = att.maxHp * 0.15

#执行extInit后执行此函数
func postInit():
	var step = sys.main.getStep()
	if mainFlag and mainName == "":
		mainDmg = 200
		mainName = "[color=#F8F8FF][默认]要塞重炮[/color]"
	if torpFlag and torpName == "":
		torpDmg = 300
		torpName = "[color=#F8F8FF][默认]相位鱼雷[/color]"
		torpCd = 5

func _onBattleStart():
	._onBattleStart()
	addBuff(buff.b_atkRan.new(15, 0, 2))

func getItems():
	pass